<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="utf-8" />
    <title>扫码验证</title>
    <script src="__PUBLIC__/Theme/js/jquery.js"></script>
</head>

<body align="center">
    <h1 style="margin-top:60px;">扫描下方二维码验证登录</h1>
    <img id="token-img" src="" style="width:20%">
    <script>
        $(function(){
            $('#token-img').attr('src','http://qr.liantu.com/api.php?text=http://192.168.45.32{:U('Home/Login/scando')}?token={$Think.get.token}');

            var getStatus=setInterval(function(){
                $.get("{:U('Home/Login/scancheck')}",{token:"{$Think.get.token}"},function(data){
                    // console.log(data);
                    if(data.status==1){
                        location.href="{:U('Home/Login/emaildo')}?token={$Think.get.token}";
                    }
                })
            },1000);
        });
    </script>
</body>

</html>
